package com.hpf.tool.entity;

import com.hpf.tool.entity.BaseEntity;
import com.hpf.tool.enums.IEnum;
/**
 * 
 * @author hpf
 *
 */
public class GlobaResponseBody extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = -1931978025242765634L;
	public GlobaResponseBody(){
	}
	public GlobaResponseBody(Object data){
		this.data = data;
	}
	public GlobaResponseBody(String code,String message){
		this.code = code;
		this.message = message;
	}
	private String code;
	private String message; 
	private Object data;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public void setBody(IEnum ieunm){
		this.setCode(ieunm.key());
		this.setMessage(ieunm.value());
	}
}
